﻿//-----------------------------------------------------------------------
// <copyright file="Hole.cs" company="WorldView Solutions Inc">
//     Copyright (c) WorldView Solutions Inc. This source is subject to the Microsoft Public License (Ms-PL). All other rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace WorldViewSolutions.Geometry
{
    /// <summary>
    /// 
    /// </summary>
    /// <remarks></remarks>
    [Serializable]
	[XmlRoot("hole")]
	public class Hole
	{
        /// <summary>
        /// Gets or sets the points.
        /// </summary>
        /// <value>The points.</value>
        /// <remarks></remarks>
		[XmlElement("points")]
		public List<Point> Points { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        /// <remarks></remarks>
		public Hole()
		{
			this.Points = new List<Point>();
		}

        /// <summary>
        /// Initializes a new instance of the <see cref="Hole"/> class.
        /// </summary>
        /// <param name="points">The points.</param>
        /// <remarks></remarks>
		public Hole(List<Point> points)
		{
            this.Points = points != null ? points : new List<Point>();
		}		
	}
}